package org.chouy.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.chouy.system.domain.SysUser;

import java.util.List;


@Mapper
public interface SysUserMapper {


    /**
     * 获取所有用户列表
     *
     * @param
     * @return 用户列表
     */
    @Select("select * from t_sys_user")
    public List<SysUser> selectUserList() ;
    

    /**
     * 根据名称查询用户
     *
     * @param userName 用户名
     * @return SysUser
     */
    @Select("select * from t_sys_user t where t.user_name = #{userName} limit 1 ")
    public SysUser selectUserByLoginName(@Param("userName") String userName) ;






}
